package org.test02;

import java.util.ArrayList;
import java.util.List;

public class MainTest {
    public static void main(String[] args) {
        System.out.println(Number.class.isAssignableFrom(Integer.class));

        System.out.println(Number.class.isAssignableFrom(Number.class));

        System.out.println(Integer.class.isAssignableFrom(Number.class));

        System.out.println(List.class.isAssignableFrom(ArrayList.class));

        System.out.println(ArrayList.class.isAssignableFrom(List.class));
    }
}
